<?php use_stylesheet('print', '', array('media' => 'print')) ?>
<?php use_javascript('print') ?>
<?php include_partial('global/userMessages', array('flash_name' => 'view_farm_msg')) ?>

<div class="static">
<?php include_partial('farmData', array('farm' => $farm)) ?>
</div>
<div id='fields_nav'>
	<h1>Fields</h1>
	<ul>
	<?php for($i = 0; $i < $num_fields; $i++) : $class = GLCCI::normalizeFiN($fields[$i]['field_name'], $fields[$i]['year']) ?>
		<li><a href='' class='fi_<?php echo $i == 0 ? "{$class} active" : $class ?>'><?php echo "{$fields[$i]['field_name']}&mdash;{$fields[$i]['year']}" ?></a></li>
	<?php endfor; ?>
	</ul>
</div>
<div id="newforms">
<?php for($i = 0; $i < $num_fields; $i++) : ?>
 <?php include_partial('fieldData', array('field' => $fields[$i], 'i' => $i)) ?>
<?php endfor; ?>
</div>
